package cn.zxf.note;

import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
import org.springframework.test.context.junit4.SpringRunner;

import cn.zxf.note.common.constant.UserConstant;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE)
@RunWith(SpringRunner.class)
@ActiveProfiles("dev")
public abstract class BaseAppTest4 extends AssertSuper implements UserConstant {

    protected static final Integer
            TEST_UID = LV3_ID,
            DATA_UID = DATA_USER;

    @BeforeClass
    public static void setup() {
        log.info("\n *-*-*-* unit before-class *-*-*-* \n\n");
        System.setProperty("spring.jmx.enabled", "false");
    }

    @Before
    public void before() {
        log.info("\n *-*-*-* unit before *-*-*-* \n\n");
    }

    @After
    public void after() {
        log.info("\n\n *-*-*-* unit after  *-*-*-* ");
    }

}
